import Vue from "vue";
import App from "./App.vue";
import router from "./router";

import VueRouter from "vue-router";
const originalPush = VueRouter.prototype.push;
VueRouter.prototype.push = function (location) {
  return originalPush.call(this, location).catch((err) => {});
};

import axios from "axios";
// 设置axios的基本配置
axios.defaults.baseURL = "https://api.example.com";
axios.defaults.timeout = 5000;

// 将axios添加到Vue的原型上
Vue.prototype.$axios = axios;

import "amfe-flexible";
// import base from '@/style/base.css'
import "@/style/base.css"; /*引入公共样式*/
// 设置网页标题
document.title = "cat music";
Vue.config.productionTip = false;

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
